//Source file: D:\\software\\untitled\\src\\main\\java\\a11\\Thoroughbred.java

package a11;
import java.time.LocalDate;

public class Thoroughbred 
{
   private String mother;
   private String father;
   private int birthyear;

   /**
    * @roseuid 671E318C0041
    */
   public Thoroughbred(String mother, String father, int birthyear)
   {
      this.mother = mother;
      this.father = father;
      this.birthyear = birthyear;
   }
   /**
    * @return int
    * @roseuid 671CF8630106
    */
   public int getCurrentAge() 
   {
      int currentYear = LocalDate.now().getYear();
      return currentYear - this.birthyear;
   }
   /**
    * @return String
    * @roseuid 671CF8650317
    */
   public String getFather() 
   {
      return this.father;
   }
   /**
    * @return String
    * @roseuid 671CF86703B0
    */
   public String getMother() 
   {

      return this.mother;
   }
}
